import os

def base(path):
	return os.path.dirname(os.path.abspath(path))

def rel_path(path, *part):
	return os.path.join(base(path), *part)